<template>
  <div class="header">
    <div class="header-left">
      <span class="iconfont">&#xe624;</span>
    </div>
    <div class="header-input">
      <span class="iconfont">&#xe632;</span>
      输入城市景点／游玩主题
    </div>
    <div class="header-right">
      {{this.city}}
      <span class="iconfont iconx">&#xe600;</span>
    </div>
  </div>
</template>

<script>
export default {
  name: "HomeHeader",
  props: {
    city: String
  }
};
</script>

<style lang="stylus" scoped>
@import '~styles/varibles.styl';

.header {
  line-height: 0.86rem; // 设计图是86PX 因为是2倍图 所以实际是43px 我们把font-size设为50px 所以这里是.85rem
  background-color: $bgcolor;
  color: #fff;
  display: flex;
}

.header-left {
  width: 0.7rem;
  text-align: center;
  margin-left: 0.04rem;
  float: left;
}

.header-input {
  flex: 1;
  background-color: #fff;
  border-radius: 0.1rem;
  height: 0.64rem;
  line-height: 0.64rem;
  margin-top: 0.12rem;
  margin-left: 0.2rem;
  color: #cccccc;
  padding-left: 0.2rem;
}

.header-right {
  min-width: 1.04rem;
  padding: 0 0.1rem;
  text-align: center;
  float: right;
  color: #fff;
}

.iconx {
  font-size: 0.24rem;
}
</style>